package Test_0817.user;

import Test_0817.book.BookShelf;
import Test_0817.ioperations.Ioperation;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-08-17
 * Time: 19:39
 */
public abstract class User {
    protected String name;//姓名
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public Ioperation[] ioperation;
    public void doIoperation(int choice, BookShelf bookShelf){
        ioperation[choice].work(bookShelf);
    }
}
